<?php
/**
 * JE Career package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2012 - 2013 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/

defined('_JEXEC') or die('Restricted access');
$doc 		= & JFactory::getDocument();
$editor		= & JFactory::getEditor();
$cparams 	= JComponentHelper::getParams ('com_media');
$js  		= JURI::base().'components/com_hostingrajacareer/assets/js/validate_career.js';
$doc->addScript($js);

?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<fieldset class="adminform">
	<legend><?php echo JText::_( 'JE_CURRENT_OPENINGS' ); ?></legend>
		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
			<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_CAREER_CATEGORY' ); ?>::<?php echo JText::_( 'JE_CAREER_CATEGORYS' ); ?>">
				<label for="name">
					<?php echo JText::_( 'JE_CAREER_CATEGORY' ); ?>:
				</label>
			</td>
			<td>
				<?php echo JHTML::_('select.genericlist', $this->category, 'catid', 'class="input_text"', 'value', 'text', $this->row->catid) ?>
			<span id="catid-error"></span>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_POSITION' ); ?>::<?php echo JText::_( 'JE_POSITIONS' ); ?>">
				<label for="name">
					<?php echo JText::_( 'JE_POSITION' ); ?>:

				</label>
			</td>
			<td>
				<input class="required" type="text" name="position" id="position" size="40" maxlength="256" value="<?php echo $this->row->position;?>"  onblur="elementvalidate(this.id)"/>
				<span id="position-error"></span>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_LOCATION' ); ?>::<?php echo JText::_( 'JE_LOCATIONS' ); ?>">
				<label for="name">
					<?php echo JText::_( 'JE_LOCATION' ); ?>:
				</label>
			</td>
			<td>
				<input class="required" type="text" name="location" id="location" size="40" maxlength="256" value="<?php echo $this->row->location;?>" onblur="elementvalidate(this.id)" />
				<span id="location-error"></span>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_NO_OF_POSITION' ); ?>::<?php echo JText::_( 'JE_NO_OF_POSITIONS' ); ?>">
				<label for="name">
					<?php echo JText::_( 'JE_NO_OF_POSITION' ); ?>:
				</label>
			</td>
			<td>
				<input class="required" type="text" name="no_of_position" id="no_of_position" size="40" maxlength="256" value="<?php echo $this->row->no_of_position;?>" onblur="elementvalidate(this.id)" /><span id="no_of_position-error"></span>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_DESCRIPTION' ); ?>::<?php echo JText::_( 'JE_DESCRIPTIONS' ); ?>">
				<label for="name">
					<?php echo JText::_( 'JE_DESCRIPTION' ); ?>:
				</label>
			</td>
			<td>
			<?php echo $editor->display( 'discription',$this->row->discription, '500', '300', '100', '100', array('image','readmore','pagebreak')) ; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_CAREER_PUBLISHED' ); ?>::<?php echo JText::_( 'JE_CAREER_PUBLISHEDS' ); ?>">
				<label for="name">
						<?php echo JText::_( 'JE_CAREER_PUBLISHED' ); ?>:
				</label>
			</td>
			<td colspan="2">
				<?php
				$published = ($this->row->id) ? $this->row->state : 1;
					echo JHTML::_('select.booleanlist',  'state', '', $published );
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key">
				<span class="editlinktip hasTip" title="<?php echo JText::_( 'JE_CATEGORY_ORDERING' ); ?>::<?php echo JText::_( 'JE_CATEGORY_ORDERINGS' ); ?>">
				<label for="ordering">
					<?php echo JText::_( 'JE_CATEGORY_ORDERING' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->lists['ordering']; ?>
			</td>
		</tr>
	</table>
</fieldset>
<input type="hidden" name="option" value="com_hostingrajacareer" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="career" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
